﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Reflection;

namespace SiloManaging
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            AppDomain.CurrentDomain.AssemblyResolve += (s, e) =>
            {
                var filename = new AssemblyName(e.Name).Name;
                var path = Application.StartupPath + @"lib\DevComponents.DotNetBar2.dll";
                return Assembly.LoadFrom(path);
            };
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new frmMain());
        }
    }
}
